import request from '@/utils/request'

// 查询账号分组列表
export function listAccountGroup(query) {
  return request({
    url: '/account/group/list',
    method: 'get',
    params: query
  })
}

// 查询账号分组详细
export function getAccountGroup(groupId) {
  return request({
    url: '/account/group/' + groupId,
    method: 'get'
  })
}

// 新增账号分组
export function addAccountGroup(data) {
  return request({
    url: '/account/group',
    method: 'post',
    data: data
  })
}

// 修改账号分组
export function updateAccountGroup(data) {
  return request({
    url: '/account/group',
    method: 'put',
    data: data
  })
}

// 删除账号分组
export function delAccountGroup(groupId) {
  return request({
    url: '/account/group/' + groupId,
    method: 'delete'
  })
}
